package ling.in.day67.dao;

import ling.in.day67.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpDao {
    List<Emp> getAll();
  //  Emp getEmpByEno(@Param("eno")int eno);
  //  Emp getEmpByEnameAndPwd(@Param("ename")String ename,@Param("pwd")String pwd);
    int addEmp(Emp emp);

    int updateEmp(Emp emp);

    int delEmp(@Param("eno")int eno);

    int updateEmpSex(@Param("eno")int eno,@Param("esex")String esex);

    List getCount();
}
